#include "select.h"
#include "ui_select.h"


using namespace std;


select::select(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::select)
{
    ui->setupUi(this);
    connect(&del,SIGNAL(deleteSignal()),this,SLOT(toShow()));
    connect(&form,SIGNAL(insertSignal()),this,SLOT(toShow()));
    QObject::connect(&del,&deleteMessage::deleteFaceSignal,&form,&Form::deleteFace);
}

select::~select()
{
    delete ui;
}

void select::on_pushButton_insert_clicked()
{
    this->hide();
    form.show();
}

void select::on_pushButton_find_clicked()
{
    this->hide();
    del.show();
}

//通过自定义信号实现功能窗口与其他窗口的互相切换
void select::toShow(){
    this->show();
}



